From 4d5aa6c3452e14976347c6b821756120a3f37d61 Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Fri, 5 Jan 2007 18:17:36 +0000 Subject: [PATCH] [XEN] Skip over the unit in parse_size_and_unit() when returning the remainder of the string. Signed-off-by: Ian Campbell --- xen/common/lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/common/lib.c b/xen/common/lib.c index c8a90b99a7..661f76420d 100644 --- a/xen/common/lib.c +++ b/xen/common/lib.c @@ -454,7 +454,7 @@ unsigned long long parse_size_and_unit(const char *s, const char **ps) case 'K': case 'k': ret <<= 10; case 'B': case 'b': - s++; + s1++; break; default: ret <<= 10; /* default to kB */ -- 2.30.2